remove array element php

32

if (in_array('strawberry', $array)) 
{
    unset($array[array_search('strawberry',$array)]);
}

Comments

Submit
0 Comments